import request from '@/utils/request'

// 查询学生作业减免权益配置列表
export function listBenefit(query) {
  return request({
    url: '/system/benefit/list',
    method: 'get',
    params: query
  })
}

// 查询学生作业减免权益配置详细
export function getBenefit(id) {
  return request({
    url: '/system/benefit/' + id,
    method: 'get'
  })
}

// 新增学生作业减免权益配置
export function addBenefit(data) {
  return request({
    url: '/system/benefit',
    method: 'post',
    data: data
  })
}

// 修改学生作业减免权益配置
export function updateBenefit(data) {
  return request({
    url: '/system/benefit',
    method: 'put',
    data: data
  })
}

// 删除学生作业减免权益配置
export function delBenefit(id) {
  return request({
    url: '/system/benefit/' + id,
    method: 'delete'
  })
}
